<!--
 * @Description: 媒体查询
 * @Author: zzj
 * @Date: 2021-08-23 09:43:18
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-25 14:13:24
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>媒体查询</title>
    <style>
        body{
            margin: 0;
        }
        .one{
            background-color: lightblue;
            height: 100px;
        }
        /* 屏幕 900px ~ 1200px */
        @media screen and (min-width:900px) and (max-width:1200px) {
            .one{
                background-color: pink;
            }
        }
        /* 屏幕 > 1200px */
        @media screen and (min-width:1200px) {
            .one{
                background-color: lightgreen;
            }
            
        }
    </style>
</head>
<body>
    <div class="one">

    </div>
</body>
</html>